#include <stdio.h>
#include <string.h>
int my_atoi(const char s[], int n)
{
    int i = 0, ret = 0, flag = 1;
    if (s[0] == '-')
    {
        flag = 0;
        i++;
    }
    if (s[0] == '+')
        i++;
    for (i; i < n; i++)
    {
        if (s[i] >= '0' && s[i] <= '9')
            ret = ret * 10 + (s[i] - 48);
        else
            break;
    }
    if (flag == 0)
        return -ret;
    else
        return ret;
}
int main()
{
    char s[100];
    while (gets(s)!=EOF)
    {
        printf("%d\n", my_atoi(s, strlen(s)));
    }
    return 0;
}